<?php include HEADER; ?>
<div class="Control">
<ul style="margin-top:4px">
  <li> <a href="<?php echo __URL_BASE ?>index.php?rt=admin_loai/edit"><label class="vadd">Thêm mới</label></a>  </li>
  <li> <label class="vdelete" >Xóa</label> </li>
  <li> <label class="vrefresh" >Làm mới</label> </li>
  <li> <a class="vback" href="javascript:void(0);" onClick="window.history.go(-1);">Trở lại</a> </li>
</ul>
</div>
<table class="TableView" cellspacing="1">
<tr class="trHeader">
    <!--<td><input type="checkbox" id="chkSelectAll" onclick="checkAll(this)" /></td>-->
    <td>Tên hãng sản xuất</td>
    
    <td>Trạng thái</td>
    <td></td>
    
</tr>
<?php
    $i = 0;
	if($lstLoai) :
		foreach($lstLoai as $item){
			if($i%2==0){
	?>		
				<tr class="trOdd">
	
				
	<?php	
			}
			else{
	?>
				<tr class="trEven">
	<?php		
			}
	?>

	<td><?php echo $item->TenLoai?></td>
	<td style="text-align:center"><?php if($item->TrangThai == "1"){ echo "Hiện";} else{ echo "Ẩn";} ?></td>
	<td style="text-align:center"><a href="<?php echo __URL_BASE.'index.php?rt=admin_loai/edit&loai_id='.$item->id ?>"><img src="<?php echo __URL_BASE ?>images/edit.png" style="cursor:pointer;" class="edit" /></a>
	<a href="<?php echo __URL_BASE.'index.php?rt=admin_loai/delete&loai_id='.$item->id ?>" onClick="return confirm('Tất cả các Tivi thuộc hãng này cũng sẽ bị xóa. \n Bạn chắc chắn muốn xóa?');"><img src="<?php echo __URL_BASE ?>images/delete.png" /></a></td>
	
	</tr>	
	<?php
			$i++;
		}
	endif;
?>


</table>
<div class="Control">
<ul style="margin-top:4px">
  <li> <a href="<?php echo __URL_BASE ?>index.php?rt=admin_loai/edit"><label class="vadd">Thêm mới</label></a> </li>
  <li> <label class="vdelete" >Xóa</label> </li>
  <li> <label class="vrefresh" >Làm mới</label> </li>
  <li> <a class="vback" href="javascript:void(0);" onClick="window.history.go(-1);">Trở lại</a> </li>
</ul>
</div>

<?php include FOOTER; ?>

